package cn.csust.net2.manager.shared.po;

import java.io.Serializable;
import java.util.Date;

import cn.csust.net2.manager.shared.vo.TreeLeaf;
import cn.csust.net2.manager.shared.vo.TreeNode;
import cn.csust.net2.manager.shared.xml.XmlInfo;
import cn.csust.net2.manager.shared.xml.XmlResources;

import com.extjs.gxt.ui.client.data.BeanModelTag;

public class Teacher extends User implements Serializable,BeanModelTag,TreeNode,TreeLeaf {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private long teacherNumber;
	private Date toWorkDate;
	private String graduateCollege;
	private String graduateMajor;
	private String education;
	private String degree;
	private String workUnit;
	private String workPosition;
	private Date startDate;
	private String grade;
	private String workDeatails;
	
	private Academy academy;
	
	
	public String getWorkUnit() {
		return workUnit;
	}

	public void setWorkUnit(String workUnit) {
		this.workUnit = workUnit;
	}

	public String getWorkPosition() {
		return workPosition;
	}

	public void setWorkPosition(String workPosition) {
		this.workPosition = workPosition;
	}

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public String getGrade() {
		return grade;
	}

	public void setGrade(String grade) {
		this.grade = grade;
	}

	public String getWorkDeatails() {
		return workDeatails;
	}

	public void setWorkDeatails(String workDeatails) {
		this.workDeatails = workDeatails;
	}
	
	public Academy getAcademy() {
		return academy;
	}

	public void setAcademy(Academy academy) {
		this.academy = academy;
	}
	public long getTeacherNumber() {
		return teacherNumber;
	}

	public void setTeacherNumber(long teacherNumber) {
		this.teacherNumber = teacherNumber;
	}

	public Date getToWorkDate() {
		return toWorkDate;
	}

	public void setToWorkDate(Date toWorkDate) {
		this.toWorkDate = toWorkDate;
	}

	public String getGraduateCollege() {
		return graduateCollege;
	}

	public void setGraduateCollege(String graduateCollege) {
		this.graduateCollege = graduateCollege;
	}

	public String getGraduateMajor() {
		return graduateMajor;
	}

	public void setGraduateMajor(String graduateMajor) {
		this.graduateMajor = graduateMajor;
	}

	public String getEducation() {
		return education;
	}

	public void setEducation(String education) {
		this.education = education;
	}

	public String getDegree() {
		return degree;
	}

	public void setDegree(String degree) {
		this.degree = degree;
	}

	@SuppressWarnings("rawtypes")
	@Override
	public Class getSelf() {
		// TODO Auto-generated method stub
		return Teacher.class;
	}

	@SuppressWarnings("rawtypes")
	@Override
	public Class[] getChildren() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String getNodeId() {
		// TODO Auto-generated method stub
		return String.valueOf(this.getUserID());
	}

	@Override
	public String getNodeName() {
		// TODO Auto-generated method stub
		return this.getName();
	}

	@Override
	public XmlInfo getXmlInfo(XmlResources instance) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String getDisplayName() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String getNodeIdName() {
		// TODO Auto-generated method stub
		return "userID";
	}

}
